home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 1
/
Amiga Tools.iso
/
s
/
export_bt_ii.dfa
< prev
next >
Wrap
Text File
|
1994-06-06
|
1KB
|
61 lines
/************************************************************************
*
* export_bt_ii.dfa by Dirk Federlein 1993
*
* Exports marked addresses to a file that you can use together with
* Beckertext II to mailmerge your letters.
*
*
* Feel free to insert additional fields or remove existing ones
*
*
************************************************************************/
options results
tabchar = '09'X
cr = '0A'X
exportfile = 't:dfa_bt2.export'
if ~show(ports, DFA) then
do
exit 0
end
if open('exfh',exportfile,'W') then
do
writeln( 'exfh', 'Address;Name;First;Street;ZIP;City;Country')
address 'DFA'
FIRST STEM ADR.
if ADR.ADDRESS.14 = 0 then
NEXTSEL STEM ADR.
do while RC = 0
writech('exfh', ADR.ADDRESS.0)
writech('exfh', (';'))
writech('exfh', ADR.ADDRESS.1)
writech('exfh', (';'))
writech('exfh', ADR.ADDRESS.2)
writech('exfh', (';'))
writech('exfh', ADR.ADDRESS.3)
writech('exfh', (';'))
writech('exfh', ADR.ADDRESS.4)
writech('exfh', (';'))
writech('exfh', ADR.ADDRESS.5)
writech('exfh', (';'))
writech('exfh', ADR.ADDRESS.6)
writech('exfh', (cr))
NEXTSEL STEM ADR.
end
close ('exfh')
end
exit